<?php
if ($horoscope->num_rows() > 0) {
    $h = $horoscope->row();
}
?>
<?php
$image_path = './../assets/avatar/images/' . $h->avatar;
if ($h->avatar != '') {
    if (file_exists($image_path)) {
        $image_path = root_url('doggy-flirt') . 'assets/avatar/images/' . $h->avatar;
    } else {
        $image_path = root_url('doggy-flirt') . 'assets/noimage.gif';
    }
} else {
    $image_path = root_url('doggy-flirt') . 'assets/noimage.gif';
}
?>

<div id="wrapper-content">
           <table class="titrepage" width="100%">
        <tr>
            <td >Horoscope</td>

        </tr>
    </table>
 
<?php echo form_open_multipart(site_url('doggy_admin/edit_horoscope'). '/' . $h->id); ?>
        <table align="center" width="100%" class="list" cellpadding="10px" cellspacing="0">
            <tr>
                <td>Nom:</td>
                <td><?php echo $h->name; ?></td>
            </tr>
            <tr>
                <td>Image:</td>
                <td><img src="<?php echo $image_path;?>" height="80"/><input type="file" name="userfile" id="userfile" size="25"/></td>
            </tr>
            <tr>
                <td width="30%" >Description:</td>
                <td><textarea style="overflow:-moz-scrollbars-vertical;" type="text" rows="10" cols="50" name="description" size="30"><?php echo $h->description ?></textarea></td>
                <td><?php echo form_error('description'); ?></td>
            </tr>
            <tr>
               <td></td> <td><input type="submit" name="submit" value=" Modifier "/></td>
            </tr>
        </table>

<?php echo form_close() ?>

</div>
